const http = require('./http.js');


function getAD(that, showad) {
	var params = {
	    url: '/advert/adConfig',
	    method: 'GET',
	    data: {
			   
		   },
	    callBack: function (res) {
		   if(res.code = 200){
			   that.setData({
			       setAD: res.data
			   });
			   showad();
		   }
	    }
	};
	http.request(params);
}


module.exports = {
    getAD,
};
